package edu.jamestang.yeb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author JamesTang
 * @date 2021/12/16 0:28
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("t_menu_role")
@ApiModel(value = "Menu role object", description = "Menu <-> Role table")
public class MenuRole implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "menu id")
    private Integer mid;

    @ApiModelProperty(value = "role id")
    @TableField(value = "rid")
    private Integer rid;
}
